package cn.dubito.miaosha.exception;

import cn.dubito.miaosha.controller.vo.CodeMsg;

/**
 * @author liliang
 * @description: 自定义异常
 * @date 2018/3/31.
 */
public class SeckillException extends RuntimeException {

    private CodeMsg codeMsg;

    public SeckillException(CodeMsg codeMsg) {
        this.codeMsg = codeMsg;
    }

    public CodeMsg getCodeMsg() {
        return codeMsg;
    }
}
